package org.example.cdpcrpbackend.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import org.example.cdpcrpbackend.domain.CrpModule;
import org.example.cdpcrpbackend.mapper.CrpModuleMapper;
import org.example.cdpcrpbackend.service.CrpModuleService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CrpModuleServiceImpl extends ServiceImpl<CrpModuleMapper, CrpModule> implements CrpModuleService {

    @Override
    public List<CrpModule> listByPage(LambdaQueryWrapper<CrpModule> wrapper, Integer page, Integer size) {
        PageHelper.startPage(page, size);
        return this.list(wrapper);
    }
}
